<include file="public@header"/>
<style type="text/css">
    .pic-list li {
        margin-bottom: 5px;
    }
</style>
<script type="text/html" id="photos-item-tpl">
    <li id="saved-image{id}">
        <input id="photo-{id}" type="hidden" name="photo_urls[]" value="{filepath}">
        <input class="form-control" id="photo-{id}-name" type="text" name="photo_names[]" value="{name}"
               style="width: 200px;" title="图片名称">
        <img id="photo-{id}-preview" src="{url}" style="height:36px;width: 36px;"
             onclick="imagePreviewDialog(this.src);">
        <a href="javascript:uploadOneImage('图片上传','#photo-{id}');">替换</a>
        <a href="javascript:(function(){$('#saved-image{id}').remove();})();">移除</a>
    </li>
</script>
<script type="text/html" id="files-item-tpl">
    <li id="saved-file{id}">
        <input id="file-{id}" type="hidden" name="file_urls[]" value="{filepath}">
        <input class="form-control" id="file-{id}-name" type="text" name="file_names[]" value="{name}"
               style="width: 200px;" title="文件名称">
        <a id="file-{id}-preview" href="{preview_url}" target="_blank">下载</a>
        <a href="javascript:uploadOne('文件上传','#file-{id}','file');">替换</a>
        <a href="javascript:(function(){$('#saved-file{id}').remove();})();">移除</a>
    </li>
</script>
</head>
<body>
<div class="wrap js-check-wrap">

    <ul class="nav nav-tabs">
        <li><a href="{:url('project/process')}?id={$id}">开发需求确认表</a></li>
        <li class="active"><a href="{:url('project/customerChangeOpinion')}?id={$id}">客户变更意见列表</a></li> 
        <li><a href="{:url('project/changeOpinion')}?id={$id}">变更列表</a></li> 
        <li><a href="{:url('project/effectImgConfirm')}?id={$id}">PC效果图确认</a></li> 
        <li><a href="{:url('project/mobileImg')}?id={$id}">移动端效果图确认</a></li> 
        <li><a href="{:url('project/check')}?id={$id}">验收</a></li> 
        <li><a href="{:url('project/deliver')}?id={$id}">交付文档</a></li> 
    </ul>
    
    <br>
             
        <div class="row">
            <div class="col-md-12">
               <table class="table table-bordered" style="border: none;text-align:center;">
                    <tr>
                        <td style="font-weight: bold;">ID</td>
                        <th style="font-weight: bold;text-align:center;width: 360px;">意见内容</th>
                        <td style="font-weight: bold;">提交人</td>
                        <td style="font-weight: bold;">提交时间</td>
                        <td style="font-weight: bold;">解决方案</td>
                        <td style="font-weight: bold;">操作</td>
                    </tr>   
                    <foreach name='result' item='vo' key='k'>               
                        <tr>
                            <td>{$k+1}</td>
                            <td>{$vo.opinion_content}</td>
                            <td>{$vo.customer_name}</td>
                            <td>{:date('Y-m-d H:i:s',$vo['add_time'])}</td>
                            <td>
                                <a href="javascript:;" onclick="add_solution({$vo.id},{$id});">添加解决方案</a>                          
                            </td>
                            <td><a href="javascript:;" onclick="close_opinion({$vo.id},{$id});">关闭意见</a></td>
                        </tr>
                    </foreach>
                </table>       
            </div>

        </div>
         
</div>
<script type="text/javascript" src="__STATIC__/js/admin.js"></script>
<script type="text/javascript">
    //编辑器路径定义
    var editorURL = GV.WEB_ROOT;
</script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.config.js"></script>
<script type="text/javascript" src="__STATIC__/js/ueditor/ueditor.all.min.js"></script>


</body>
</html>
<script>
    function add_solution(id,project_id)
    {
        openIframeLayer("{:url('project/solutionAdd')}?id="+id+'&project_id='+project_id, '添加解决方案', {
            area: ['60%;', '98%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }
    function close_opinion(id,project_id)
    {
        openIframeLayer("{:url('project/closeOpinion')}?id="+id+'&project_id='+project_id, '关闭意见', {
            area: ['80%;', '98%;'],
            btn: ['关闭'],
            yes: function (index, layero) {            
                layer.close(index); //如果设定了yes回调，需进行手工关闭
            }
        });
    }
</script>
